import request from '@/utils/request'

// 查询商城正式订单列表
export function listNcMallSalesOrders(query) {
  return request({
    url: '/sales/NcMallSalesOrders/list',
    method: 'get',
    params: query
  })
}

// 查询商城正式订单详细
export function getNcMallSalesOrders(id) {
  return request({
    url: '/sales/NcMallSalesOrders/' + id,
    method: 'get'
  })
}

// 新增商城正式订单
export function addNcMallSalesOrders(data) {
  return request({
    url: '/sales/NcMallSalesOrders',
    method: 'post',
    data: data
  })
}

// 修改商城正式订单
export function updateNcMallSalesOrders(data) {
  return request({
    url: '/sales/NcMallSalesOrders',
    method: 'put',
    data: data
  })
}

// 删除商城正式订单
export function delNcMallSalesOrders(id) {
  return request({
    url: '/sales/NcMallSalesOrders/' + id,
    method: 'delete'
  })
}
